import request from '../utile/axios'
export default{
    add(ruleForm){
        return request.post('/users', ruleForm)
    },
    edit(scope){
        return request.get(`/users/${scope}`)
    },
    getList(queryInfo){
        return request.get('/users',queryInfo)
    },
    editAdd(id,List){
        return request.put(`/users/${id}`,List)
    },
    state(id,mg_state){
        return request.put(`/users/${id}/state/${mg_state}`)
    },
    settAdd(id,rid){
        return request.put( `users/${id}/role`,rid)
    },
    sett(){
        return request.get('/roles')
    },
    del(id){
        return request.delete(`users/${id}`)
    }
}
